{% extends 'base.html' %}

{% block title %}
    发布问答
{% endblock %}

{% block head %}

{% endblock %}

{% block body %}
    <div class="row">
        <div class="col"></div>
        <div class="col-8">
            <h3 class="mt-3 mb-3" style="text-align: center">发布问答</h3>
            <form action="{{ url_for('qa.question_publish') }}" method="post">
                <div class="form-group">
                    <input class="form-control" type="text" name="title" placeholder="请输入标题">
                </div>
                <div class="form-group">
                    <textarea class="form-control" name="content" rows="10" placeholder="请输入内容"></textarea>
                </div>
                <div class="form-group">
                    {% for message in get_flashed_messages() %}
                        <div class="form-group ">
                            <div class="text-danger">{{ message }}</div>
                        </div>
                    {% endfor %}
                </div>
                <div class="form-group">
                    <button type="submit" class="btn btn-primary btn-block">发布</button>
                </div>
            </form>
        </div>

        <div class="col"></div>
    </div>
{% endblock %}

